package com.netease.spring.knight;

import com.netease.spring.exceptions.QuestException;

public class KnightOfTheRoundTable implements Knight {
	private String name;
	private Quest quest;

	public KnightOfTheRoundTable(String name) {
		this.name = name;
	}

	public KnightOfTheRoundTable(Quest quest) {
		this.quest = quest;
	}

	public void setQuest(Quest quest) {
		this.quest = quest;
	}

	@Override
	public Object embarkQuest() throws QuestException {
		// TODO Auto-generated method stub
		System.out.println("KnightOfTheRoundTable's name is " + name);
		return quest.embark();
	}

}
